package com.ruoyi.chengkao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.chengkao.mapper.CkStudyLocationMapper;
import com.ruoyi.chengkao.domain.CkStudyLocation;
import com.ruoyi.chengkao.service.ICkStudyLocationService;

/**
 * 报考学习地点信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-03-10
 */
@Service
public class CkStudyLocationServiceImpl implements ICkStudyLocationService 
{
    @Autowired
    private CkStudyLocationMapper ckStudyLocationMapper;

    /**
     * 查询报考学习地点信息
     * 
     * @param id 报考学习地点信息主键
     * @return 报考学习地点信息
     */
    @Override
    public CkStudyLocation selectCkStudyLocationById(Long id)
    {
        return ckStudyLocationMapper.selectCkStudyLocationById(id);
    }

    public List<CkStudyLocation> selectCkStudyLocationAll()
    {
        return ckStudyLocationMapper.selectCkStudyLocationAll();
    }

    /**
     * 查询报考学习地点信息列表
     * 
     * @param ckStudyLocation 报考学习地点信息
     * @return 报考学习地点信息
     */
    @Override
    public List<CkStudyLocation> selectCkStudyLocationList(CkStudyLocation ckStudyLocation)
    {
        return ckStudyLocationMapper.selectCkStudyLocationList(ckStudyLocation);
    }

    /**
     * 新增报考学习地点信息
     * 
     * @param ckStudyLocation 报考学习地点信息
     * @return 结果
     */
    @Override
    public int insertCkStudyLocation(CkStudyLocation ckStudyLocation)
    {
        return ckStudyLocationMapper.insertCkStudyLocation(ckStudyLocation);
    }

    /**
     * 修改报考学习地点信息
     * 
     * @param ckStudyLocation 报考学习地点信息
     * @return 结果
     */
    @Override
    public int updateCkStudyLocation(CkStudyLocation ckStudyLocation)
    {
        return ckStudyLocationMapper.updateCkStudyLocation(ckStudyLocation);
    }

    /**
     * 批量删除报考学习地点信息
     * 
     * @param ids 需要删除的报考学习地点信息主键
     * @return 结果
     */
    @Override
    public int deleteCkStudyLocationByIds(Long[] ids)
    {
        return ckStudyLocationMapper.deleteCkStudyLocationByIds(ids);
    }

    /**
     * 删除报考学习地点信息信息
     * 
     * @param id 报考学习地点信息主键
     * @return 结果
     */
    @Override
    public int deleteCkStudyLocationById(Long id)
    {
        return ckStudyLocationMapper.deleteCkStudyLocationById(id);
    }
}
